//引入创建仓库-合并reducers-中间件
import {createStore,combineReducers,applyMiddleware} from "redux"
import thunk from "redux-thunk"
//引入工具
import {composeWithDevTools} from "redux-devtools-extension"
import register from "./modules/register.js"
import login from "./modules/login.js"
import home from "./modules/home.js"
import cate from "./modules/cate.js"
import index from "./modules/index.js"
import mine from "./modules/mine.js"
let reducer =combineReducers({
    register,
    login,
    home,
    cate,
    index,mine
})

let store =createStore(reducer,composeWithDevTools(applyMiddleware(thunk)))

export default store